const cmdb = '/industryCmdb';
const cmdbBase = `${cmdb}/v1`;
const yunchangBase = '/nanotube/v1/yc';
const workorderEngineBase = '/workorder-engine';
const opsWorkorderBase = '/ops-workorder';
const logMspBase = '/log-msp';

/* ----------------------- 命名空间 -------------------- */
const queryNameSpaceList = {
  url: `${cmdbBase}/namespace/namespace-list`,
  method: 'GET',
};
/* ----------------------- 模型 ------------------------ */
// 查询模型列表
const queryModelList = {
  url: `${cmdbBase}/module/classification/list`,
  method: 'GET',
};
// 查询模型字段属性
const queryModelPropertyList = {
  url: `${cmdbBase}/module/property/list`,
  method: 'POST',
};
// 查询模型属性字段类型
const queryModelPropertyType = {
  url: `${cmdbBase}/module/property/types`,
  method: 'GET',
};
// 创建（或修改）模型分组
const createModelGroup = {
  url: `${cmdbBase}/module/classification/build`,
  method: 'POST',
};
const updateModelGroup = {
  url: `${cmdbBase}/module/classification/update`,
  method: 'POST',
};
// 创建（或修改）模型
const createModel = {
  url: `${cmdbBase}/module/definition/build`,
  method: 'POST',
};
const updateModel = {
  url: `${cmdbBase}/module/definition/update`,
  method: 'POST',
};
// 新增（或修改）模型属性
const createModelProperty = {
  url: `${cmdbBase}/module/property/build`,
  method: 'POST',
};
const updateModelProperty = {
  url: `${cmdbBase}/module/property/update`,
  method: 'POST',
};
// 删除模型分组
const deleteModelGroup = (ID) => {
  return {
    url: `${cmdbBase}/module/classification/delete/${ID}`,
    method: 'GET',
  };
};
// 删除模型
const deleteModel = (ID) => {
  return {
    url: `${cmdbBase}/module/definition/delete/${ID}`,
    method: 'DELETE',
  };
};
// 删除模型属性
const deleteModelProperty = (ID) => {
  return {
    url: `${cmdbBase}/module/property/delete/${ID}`,
    method: 'DELETE',
  };
};
// 导入模型分组
const importModelGroup = {
  url: `${cmdbBase}/module/import/classification`,
  method: 'POST',
};
// 导入模型
const importModel = {
  url: `${cmdbBase}/module/import/definition`,
  method: 'POST',
};
// 导入模型
const importDefinitionModel = {
  url: `${cmdbBase}/module/definition/import`,
  method: 'POST',
};
// 导出模型
const exportModel = (cm_module_id) => {
  return {
    url: `${cmdbBase}/module/definition/export/${cm_module_id}`,
    method: 'GET',
  };
};

// 导入模型属性
const importModelProperty = {
  url: `${cmdbBase}/module/import/property`,
  method: 'POST',
};
// 查询模型属性分组
const queryModelPropertyGroup = (cmModuleId) => {
  return {
    url: `${cmdbBase}/module/propertyGroup/${cmModuleId}`,
    method: 'GET',
  };
};
// 创建模型属性分组
const createModulePropertyGroup = {
  url: `${cmdbBase}/module/propertyGroup`,
  method: 'POST',
};
// 修改模型属性分组
const updateModulePropertyGroup = {
  url: `${cmdbBase}/module/propertyGroup`,
  method: 'PUT',
};
// 删除模型属性分组
const deleteModulePropertyGroup = {
  url: `${cmdbBase}/module/propertyGroup`,
  method: 'DELETE',
};

// 查询模型唯一校验
const queryPropertyUnique = (cmModuleId) => {
  return {
    url: `${cmdbBase}/module/module-unique/${cmModuleId}`,
    method: 'GET',
  };
};
// 创建模型唯一校验
const createPropertyUnique = {
  url: `${cmdbBase}/module/module-unique`,
  method: 'POST',
};
// 修改模型唯一校验
const updatePropertyUnique = (id) => {
  return {
    url: `${cmdbBase}/module/module-unique/${id}`,
    method: 'PUT',
  };
};
// 删除模型唯一校验
const deletePropertyUnique = (id) => {
  return {
    url: `${cmdbBase}/module/module-unique/${id}`,
    method: 'DELETE',
  };
};
// 变更记录
const queryModelLog = {
  url: `${logMspBase}/operatelogv1/queryCMDBModelLogs`,
  method: 'POST',
  headers: {
    resourceType: 'Model',
  },
};

/* ----------------------- 模型关系 ------------------------ */
// 查询所有模型对应的模型关系
const queryAllModelAssociate = {
  url: `${cmdbBase}/module-associate/listAll`,
  method: 'POST',
};
// 查询某个模型对应的模型关系
const queryModelAssociateList = (ID) => {
  return {
    url: `${cmdbBase}/module-associate/find/${ID}`,
    method: 'POST',
  };
};
const queryModelAssociate = (ID, level = 1) => {
  return {
    url: `${cmdbBase}/module-associate/find/${ID}/${level}`,
    method: 'GET',
  };
};
//新增模型关联定义
const createModelAssociate = {
  url: `${cmdbBase}/module-associate`,
  method: 'POST',
};
//修改模型关联定义
const updateModelAssociate = {
  url: `${cmdbBase}/module-associate`,
  method: 'PUT',
};
// 删除模型关系
const deleteModelAssociate = (ID) => {
  return {
    url: `${cmdbBase}/module-associate/${ID}`,
    method: 'DELETE',
  };
};
// 查询 新增模型关联时选择模型
const queryKindModule = {
  url: `${cmdbBase}/module-associate/modules`,
  method: 'GET',
};
// 查询模型关联页面的 关联类型 和 源-目标约束
const queryModelAssociateMapping = {
  url: `${cmdbBase}/module-associate/mappings`,
  method: 'GET',
};
// 导入模型关联
const importModelAssociate = {
  url: `${cmdbBase}/module/import/associate`,
  method: 'POST',
};
// 查询模型关联列表
const queryModuleAssociateRules = {
  url: `${cmdbBase}/module-associate-rules`,
  method: 'POST',
};
// 创建模型关联规则
const createModuleAssociateRule = {
  url: `${cmdbBase}/module-associate-rule`,
  method: 'POST',
};
// 修改模型关联规则
const editModuleAssociateRule = (id) => {
  return {
    url: `${cmdbBase}/module-associate-rule/${id}`,
    method: 'POST',
  };
};
// 删除关联规则
const deleteModuleAssociateRule = (id) => {
  return {
    url: `${cmdbBase}/module-associate-rule/${id}`,
    method: 'DELETE',
  };
};
// 根据模型关联规则执行资源数据建立关系
const executeModuleAssociateRule = (id) => {
  return {
    url: `${cmdbBase}/module-associate-rule/execute`,
    method: 'POST',
  };
};
// 更改规则是否自动执行状态
const autoExecuteModuleAssociateRule = (ruleId, status, author) => {
  return {
    url: `${cmdbBase}/module-associate-rule/auto-execute/${ruleId}/${status}/${author}`,
    method: 'PUT',
  };
};
//创建用户自定义业务拓补层级
const createMainLine = {
  url: `${cmdbBase}/module-associate/main-line`,
  method: 'POST',
};
//查询拓补组成模型关系
const queryMainLine = {
  url: `${cmdbBase}/module-associate/main-line`,
  method: 'GET',
};
//删除拓补组成模型关系
const deleteMainLine = (id) => {
  return {
    url: `${cmdbBase}/module-associate/main-line/${id}`,
    method: 'DELETE',
  };
};
/* ----------------------- 资源 ------------------------ */
// 查询资源目录
const queryResourceCatalog = {
  url: `${cmdbBase}/resource/catalogue`,
  method: 'GET',
};
// 查询表格表头
const queryTableHeader = {
  url: `${cmdbBase}/resource/title`,
  method: 'GET',
};
// 查询资源列表
const queryResourceList = {
  url: `${cmdbBase}/resource/page`,
  method: 'POST',
};
// 查询资源详细属性信息
const queryResourceFieldsDetail = {
  url: `${cmdbBase}/resource/resource-detail`,
  method: 'GET',
};
// 查询资源关联
const queryResourceRelation = {
  url: `${cmdbBase}/resource/resource-relation-data`,
  method: 'GET',
};
// 可用的关联关系
const queryAssociateList = {
  url: `${cmdbBase}/resource/associate-list`,
  method: 'GET',
};
// 查询可关联的资源列表（用于关联）
const queryAvailableAssociate = {
  url: `${cmdbBase}/resource/associate-resource`,
  method: 'GET',
};
//
// 查询拓扑根节点资源目录
const queryTopologyCatalogList = {
  url: `${cmdbBase}/topology/catalogue-list`,
  method: 'GET',
};
// 查询可关联的资源关系（用于树图展示）
const queryTopologyData = {
  url: `${cmdbBase}/resource/topology/data-list`,
  method: 'GET',
};
// 资源数据导出
const exportResourceData = {
  url: `${cmdbBase}/resource/export-resource-data`,
  method: 'GET',
};
// 修改模型属性是否要展示
const updateFieldshow = {
  url: `${cmdbBase}/resource/updateshow`,
  method: 'POST',
};
// 下载模型的导入模板excel文件
const downloadExcelTemplate = {
  url: `${cmdbBase}/resource/export-module-excel`,
  method: 'GET',
};
// 导入资源
const importResource = {
  url: `${cmdbBase}/resource/import-resource`,
  method: 'POST',
};
// 添加关联
const addRelation = {
  url: `${cmdbBase}/resource/add-relation`,
  method: 'POST',
};
// 取消关联
const deleteRelation = {
  url: `${cmdbBase}/resource/delete-relation`,
  method: 'POST',
};
// 添加资源
const addResource = {
  url: `${cmdbBase}/resource/add-resource`,
  method: 'POST',
};
// 修改资源
const updateResource = {
  url: `${cmdbBase}/resource/update-resource`,
  method: 'POST',
};
// 批量删除资源
const deleteResource = {
  url: `${cmdbBase}/resource/delete-resource`,
  method: 'POST',
};
//查询模型数据关联（列表）
const queryRelationData = {
  url: `${cmdbBase}/relation-data`,
  method: 'GET',
};
//创建模型数据关联
const createRelationData = {
  url: `${cmdbBase}/relation-data`,
  method: 'POST',
};
// 查询被关联过的数据
const queryRelationDataIds = {
  url: `${cmdbBase}/relation-data/ids`,
  method: 'GET',
};
//取消模型数据关联
const deleteRelationData = (relationId) => ({
  url: `${cmdbBase}/relation-data/${relationId}`,
  method: 'DELETE',
});
//查询数据关联(图形)
const queryGraphicalRelationData = {
  url: `${cmdbBase}/graphical/relation-data`,
  method: 'GET',
};
// 资源池查询
const queryRegionList = (unid) => ({
  url: `${cmdbBase}/topology/region-list/${unid}`,
  method: 'GET',
});
// 资源变更记录
const queryResourceLog = {
  url: `${logMspBase}/operatelogv1/queryCMDBResoucesLogs`,
  method: 'POST',
  headers: {
    resourceType: 'Resources',
  },
};
// 查询OSS云区域
const queryOssCloudRegions = {
  url: `${cmdbBase}/upload/getAllOssCloudRegion`,
  method: 'GET',
};
// 查询OSS导入任务列表
const queryOssImportTaskList = {
  url: `${cmdbBase}/upload/getOssUploadFileTaskList`,
  method: 'POST',
};
// 下载OSS导入模板
const downloadOssImportTemplate = {
  url: `${cmdbBase}/upload/downloadFileTemplate`,
  method: 'GET',
};
// 创建OSS导入任务
const createOssImportTask = {
  url: `${cmdbBase}/upload/fileUpload`,
  method: 'POST',
};
// 下载OSS导入数据
const downloadOssImportData = (ossUploadTaskId) => ({
  url: `${cmdbBase}/upload/downloadOssFileUploadData/${ossUploadTaskId}`,
  method: 'GET',
});
// 删除OSS导入任务
const deleteOssImportTask = (ossUploadTaskId) => ({
  url: `${cmdbBase}/upload/delete/${ossUploadTaskId}`,
  method: 'DELETE',
});
// 查询OSS导入任务操作日志列表
const queryOssImportTaskOperationLogList = {
  url: `${logMspBase}/operatelogv1/queryUploadTaskLogs`,
  method: 'POST',
  headers: {
    resourceType: 'ImportTaskManagement',
  },
};
// 查询OSS导入任务的模型
const queryOssImportTaskModels = (ossUploadTaskId) => ({
  url: `${cmdbBase}/upload/getOssUploadFileTaskModule/${ossUploadTaskId}`,
  method: 'GET',
});
// 查询OSS导入任务的模型统计
const queryOssImportTaskModelStat = (ossUploadTaskId) => ({
  url: `${cmdbBase}/upload/countOssUploadFileTaskModuleTotal/${ossUploadTaskId}`,
  method: 'GET',
});
// 查询OSS导入任务的模型字段
const queryOssImportTaskModelFields = (cmModuleId) => ({
  url: `${cmdbBase}/upload/getOssUploadModuleFieldName/${cmModuleId}`,
  method: 'GET',
});
// 查询OSS导入任务的模型数据列表
const queryOssImportTaskModelDataList = (ossUploadTaskId) => ({
  url: `${cmdbBase}/upload/getOssUploadData/${ossUploadTaskId}`,
  method: 'POST',
});
// 查询OSS验收单详情
const queryOssAcceptanceDetail = {
  url: `${cmdbBase}/cmdb/acceptance/info`,
  method: 'GET',
};
// 查询OSS验收列表
const queryOssAcceptanceList = {
  url: `${cmdbBase}/cmdb/acceptance`,
  method: 'GET',
};
// 删除OSS验收单
const deleteOssAcceptance = {
  url: `${cmdbBase}/cmdb/acceptance`,
  method: 'DELETE',
};
// 查询OSS验收操作日志列表
const queryOssAcceptanceOperationLogList = {
  url: `${logMspBase}/operatelogv1/queryAcceptanceResourceManagementLogs`,
  method: 'POST',
  headers: {
    resourceType: 'AcceptanceResourceManagement',
  },
};
// 查询所有验收模型（OSS验收资料页面）
const queryModelsInOssAcceptance = {
  url: `${cmdbBase}/upload/getAllOssModule`,
  method: 'GET',
};
// 查询所有验收模型统计（OSS验收资料页面）
const queryModelStatInOssAcceptance = (cloudRegionCode) => ({
  url: `${cmdbBase}/upload/countOssModuleResourceTotal/${cloudRegionCode}`,
  method: 'GET',
});
// 查询模型字段（OSS验收资料页面）
const queryModelFieldsInOssAcceptance = {
  url: `${cmdbBase}/acceptanceResource/module/property/list`,
  method: 'POST',
};
// 查询实例（OSS验收资料页面）
const queryResourceListInOssAcceptance = {
  url: `${cmdbBase}/acceptanceResource/page`,
  method: 'POST',
};
// 查询实例ID（OSS验收资料页面）
const queryResourceIdsInOssAcceptance = {
  url: `${cmdbBase}/resource/all-ids`,
  method: 'POST',
};
// 查询OSS验收客响经理
const queryOssAcceptanceManagers = {
  url: `${workorderEngineBase}/wocloud-workorder/cmdb/group/getUsersByGroupName`,
  method: 'POST',
};
// 查询OSS验收工单沟通记录
const queryOssAcceptanceWorkOrderLinks = {
  url: `${opsWorkorderBase}/workorder/workorder/selectInstanceLinkLogForCmdb`,
  method: 'POST',
};
// 创建OSS验收资料
const createOssAcceptance = {
  url: `${cmdbBase}/cmdb/acceptance`,
  method: 'PUT',
};
// 编辑OSS验收资料
const updateOssAcceptance = {
  url: `${cmdbBase}/cmdb/acceptance`,
  method: 'POST',
};
/* ----------------------- 标签 ------------------------ */
// 查询标签列表
const queryTags = {
  url: `${cmdbBase}/tags`,
  method: 'POST',
};
// 创建标签
const createTag = {
  url: `${cmdbBase}/tag`,
  method: 'POST',
};
// 修改标签信息
const updateTag = (id) => ({
  url: `${cmdbBase}/tag/${id}`,
  method: 'PUT',
});
// 删除标签信息
const deleteTag = (id) => ({
  url: `${cmdbBase}/tag/${id}`,
  method: 'DELETE',
});
// 关联资源和标签
const relationTag = {
  url: `${cmdbBase}/resource/tag/relation`,
  method: 'POST',
};
//取消资源和标签的关联
const deleteRelationTag = (id) => ({
  url: `${cmdbBase}/resource/tag/relation/${id}`,
  method: 'DELETE',
});
/* ----------------------- 标签 ------------------------ */
//查询服务分类列表
const queryServiceCategory = {
  url: `${cmdbBase}/service-category-list`,
  method: 'GET',
};
//新增服务分类
const createServiceCategory = {
  url: `${cmdbBase}/service-category`,
  method: 'POST',
};
//修改服务分类信息
const updateServiceCategory = (id) => ({
  url: `${cmdbBase}/service-category/${id}`,
  method: 'PUT',
});
//删除服务分类信息
const deleteServiceCategory = (id) => ({
  url: `${cmdbBase}/service-category/${id}`,
  method: 'DELETE',
});
/* ----------------------- 业务 ------------------------ */
//查询业务列表
const queryBizList = {
  url: `${cmdbBase}/biz-list`,
  method: 'POST',
};
//新增业务
const createBiz = {
  url: `${cmdbBase}/biz`,
  method: 'POST',
};
//修改业务
const updateBiz = (cm_unid) => ({
  url: `${cmdbBase}/biz/${cm_unid}`,
  method: 'PUT',
});
//删除业务信息
const deleteBiz = (cm_unid) => ({
  url: `${cmdbBase}/biz/${cm_unid}`,
  method: 'DELETE',
});
/* ----------------------- 服务模版 ------------------------ */
//查询服务模版列表
const queryServiceTemplateList = {
  url: `${cmdbBase}/service-template/list`,
  method: 'POST',
};
//新增服务模版
const createServiceTemplate = {
  url: `${cmdbBase}/service-template`,
  method: 'POST',
};
//修改服务模板信息
const updateServiceTemplate = (id) => ({
  url: `${cmdbBase}/service-template/${id}`,
  method: 'PUT',
});
//删除服务模板信息
const deleteServiceTemplate = (id) => ({
  url: `${cmdbBase}/service-template/${id}`,
  method: 'DELETE',
});
/* ----------------------- 集群模版 ------------------------ */
//查询集群模板列表
const querySetTemplate = {
  url: `${cmdbBase}/set-template/list`,
  method: 'POST',
};
//新增集群模板
const createSetTemplate = {
  url: `${cmdbBase}/set-template`,
  method: 'POST',
};
//查询集群模板和服务关联列表
const querySetTemplateRelations = (set_template_id) => ({
  url: `${cmdbBase}/set-template/${set_template_id}/service-template-relations`,
  method: 'GET',
});
//修改集群模板信息
const updateSetTemplate = (id) => ({
  url: `${cmdbBase}/set-template/${id}`,
  method: 'PUT',
});
//删除集群模板信息
const deleteSetTemplate = (id) => ({
  url: `${cmdbBase}/set-template/${id}`,
  method: 'DELETE',
});
/* ----------------------- 关联类型 ------------------------ */
//查询关联类型
const queryAssociateType = {
  url: `${cmdbBase}/associate-types`,
  method: 'POST',
};
//新增关联类型
const createAssociateType = {
  url: `${cmdbBase}/associate-type`,
  method: 'POST',
};
//修改关联类型
const updateAssociateType = (id) => ({
  url: `${cmdbBase}/associate-type`,
  method: 'PUT',
});
//删除关联类型
const deleteAssociateType = (id) => ({
  url: `${cmdbBase}/associate-type/${id}`,
  method: 'DELETE',
});
/* ----------------------- 业务拓扑 ------------------------ */
//查询空闲机池信息
const queryBizPool = (biz_id) => ({
  url: `${cmdbBase}/business-topology/biz/pool/${biz_id}`,
  method: 'GET',
});
//查询业务拓补列表
const queryBizTopologyList = (biz_id) => ({
  url: `${cmdbBase}/business-topology/biz/${biz_id}`,
  method: 'POST',
});
//创建业务拓补实例
const createMainLineInstance = {
  url: `${cmdbBase}/business-topology/main-line-instance`,
  method: 'POST',
};
//创建集群实例
const createSetInstance = {
  url: `${cmdbBase}/business-topology/set-instance`,
  method: 'POST',
};
//创建服务模块实例
const createServiceInstance = {
  url: `${cmdbBase}/business-topology/service-instance`,
  method: 'POST',
};
//查询云主机列表
const queryBizServers = {
  url: `${cmdbBase}/service-relation/search/servers`,
  method: 'POST',
};
//转移主机所属业务模块
const moveToService = {
  url: `${cmdbBase}/service-relation/move-to-service`,
  method: 'POST',
};
//转移主机到资源池中即未分配状态(批量操作仅支持相同业务的主机)
const moveToResource = {
  url: `${cmdbBase}/service-relation/move-to-resource`,
  method: 'POST',
};
//未分配主机的分配到业务空闲机池
const assignService = (biz_id) => ({
  url: `${cmdbBase}/service-relation/assign`,
  method: 'POST',
});
//查询指定的云主机信息（包含业务、模块，集群）
const queryResourceForServer = {
  url: `${cmdbBase}/resource/query-resource/server`,
  method: 'POST',
};
/* ----------------------- 云畅平台 ------------------------ */
// 查询资源归属省市
const queryDistrictTreeInfo = {
  url: `${yunchangBase}/nanotube-base/queryDistrictTreeInfo`,
  method: 'POST',
};

// 模拟接口
const moni = {
  url: `${yunchangBase}/nanotube-base/moni`,
  method: 'POST',
};

const cmdbres = {
  moni,
  cmdbBase,
  queryNameSpaceList,
  queryModelList,
  queryModelPropertyList,
  queryModelPropertyType,
  queryModelPropertyGroup,
  createModulePropertyGroup,
  updateModulePropertyGroup,
  deleteModulePropertyGroup,
  queryPropertyUnique,
  createPropertyUnique,
  updatePropertyUnique,
  deletePropertyUnique,
  queryModelLog,
  queryModelAssociateList,
  queryModelAssociate,
  queryAllModelAssociate,
  queryKindModule,
  queryModelAssociateMapping,
  createModelGroup,
  updateModelGroup,
  createModel,
  updateModel,
  createModelProperty,
  updateModelProperty,
  createModelAssociate,
  updateModelAssociate,
  deleteModelGroup,
  deleteModel,
  deleteModelProperty,
  deleteModelAssociate,
  importModelGroup,
  importModel,
  importDefinitionModel,
  exportModel,
  importModelProperty,
  importModelAssociate,
  queryModuleAssociateRules,
  createModuleAssociateRule,
  editModuleAssociateRule,
  deleteModuleAssociateRule,
  executeModuleAssociateRule,
  autoExecuteModuleAssociateRule,
  createMainLine,
  queryMainLine,
  deleteMainLine,
  queryResourceCatalog,
  queryTableHeader,
  queryResourceList,
  queryResourceFieldsDetail,
  queryResourceRelation,
  queryAssociateList,
  queryAvailableAssociate,
  queryTopologyCatalogList,
  queryTopologyData,
  exportResourceData,
  updateFieldshow,
  downloadExcelTemplate,
  importResource,
  addRelation,
  deleteRelation,
  addResource,
  updateResource,
  deleteResource,
  queryRelationData,
  createRelationData,
  queryRelationDataIds,
  deleteRelationData,
  queryGraphicalRelationData,
  queryRegionList,
  queryResourceLog,
  queryOssCloudRegions,
  queryOssImportTaskList,
  downloadOssImportTemplate,
  createOssImportTask,
  downloadOssImportData,
  deleteOssImportTask,
  queryOssImportTaskOperationLogList,
  queryOssImportTaskModels,
  queryOssImportTaskModelStat,
  queryOssImportTaskModelFields,
  queryOssImportTaskModelDataList,
  deleteOssAcceptance,
  queryOssAcceptanceDetail,
  queryOssAcceptanceList,
  queryOssAcceptanceOperationLogList,
  queryModelsInOssAcceptance,
  queryModelStatInOssAcceptance,
  queryModelFieldsInOssAcceptance,
  queryResourceListInOssAcceptance,
  queryResourceIdsInOssAcceptance,
  queryOssAcceptanceManagers,
  queryOssAcceptanceWorkOrderLinks,
  createOssAcceptance,
  updateOssAcceptance,
  queryTags,
  createTag,
  updateTag,
  deleteTag,
  relationTag,
  deleteRelationTag,
  queryServiceCategory,
  createServiceCategory,
  updateServiceCategory,
  deleteServiceCategory,
  queryBizList,
  createBiz,
  updateBiz,
  deleteBiz,
  queryServiceTemplateList,
  createServiceTemplate,
  updateServiceTemplate,
  deleteServiceTemplate,
  querySetTemplate,
  createSetTemplate,
  querySetTemplateRelations,
  updateSetTemplate,
  deleteSetTemplate,
  queryAssociateType,
  createAssociateType,
  updateAssociateType,
  deleteAssociateType,
  queryBizPool,
  queryBizTopologyList,
  createMainLineInstance,
  createSetInstance,
  createServiceInstance,
  queryBizServers,
  moveToService,
  moveToResource,
  assignService,
  queryResourceForServer,
  queryDistrictTreeInfo,
};
export default cmdbres;
